<template>
  <div class="app-container">
    <el-tabs type="border-card">
      <el-tab-pane
        v-for="(item,index) in tabList"
        :key="index"
        :label="item.label"
      ><distinguish :button-name="item.label" :post-type="item.postType"/></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

import Distinguish from "@/views/third/ai/distinguish";

export default {
  name: "BaiduAI",
  components: {
    Distinguish
  },
  data() {
    return {
      activeTab: "one-ta",
      // 遮罩层
      loading: true,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      },
      tabList: [
        {
          label: '人脸检测',
          postType: 'faceDetect'
        },
        {
          label: '植物识别',
          postType: 'plant'
        },
        {
          label: '银行卡识别',
          postType: 'bankCard'
        },
        {
          label: '身份证识别',
          postType: 'idCard'
        },
        {
          label: '车牌号识别',
          postType: 'plate'
        },
        {
          label: '驾驶证识别',
          postType: 'driver'
        },
        {
          label: '动物识别',
          postType: 'animal'
        },
        {
          label: '车型识别',
          postType: 'car'
        },
        {
          label: '菜品识别',
          postType: 'dish'
        },
        {
          label: '通用文字识别',
          postType: 'general_basic'
        },
      ]
    };
  },
  created() {

  },
  activated(){

  },
  methods: {

  }
};
</script>
